<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core " %>
<%@include file="./../../../taglibs.jsp"%>
<html>
<head>
    <%@include file="./../../../header.jsp"%>
</head>

	<body class="body">
		
		<a href="javascript:history.go(-1);" class="layui-btn">返回</a>	
		<form class="layui-form layui-form-labelw100" action="" method="" style="width: 500px;margin-top: 30px;">
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>所属社区</label>
				<div class="layui-input-block">
					<select name="" >
				        <option value="">超级管理员</option>
				        <option value="0">一级账户</option>
				        <option value="1">二级账户</option>
				        <option value="2">三级账户</option>
				        <option value="3">其他账户</option>
			      	</select>
				</div>
			</div>	
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>角色</label>
				<div class="layui-input-block">
					<select name="" >
				        <option value="">超级管理员</option>
				        <option value="0">一级账户</option>
				        <option value="1">二级账户</option>
				        <option value="2">三级账户</option>
				        <option value="3">其他账户</option>
			      	</select>
				</div>
			</div>	
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>社工姓名</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" name="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>性别</label>
				<div class="layui-input-block">
					<input type="radio" name="sex" value="男" title="男">
     				<input type="radio" name="sex" value="女" title="女" checked>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>手机号码</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" name="" class="layui-input">
				</div>
			</div>
		
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>用户头像</label>
				<div class="layui-input-block">
					<div class="el-imgupload">
						<img src="" alt="" />
					</div>
					<!--<button type="button" class="layui-btn" id="test1">
					  <i class="layui-icon">&#xe67c;</i>上传图片
					</button>-->
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>用户名</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" name="" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label"><i class="must_star">*</i>登录密码</label>
				<div class="layui-input-block">
					<input type="text" required lay-verify="required" name="" class="layui-input">
				</div>
			</div>
			
			
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button type="reset" class="layui-btn layui-btn-primary">取消</button>
					<button class="layui-btn" type="submit">提交</button>
				</div>
			</div>
		</form>
		
		
		<script type="text/javascript">
			var form = layui.form,
				layer = layui.layer,
				layedit = layui.layedit,
				upload = layui.upload,
				laydate = layui.laydate;
				
				 upload.render({
					  elem: '.el-imgupload'
					  ,url: '/api/upload/'
					  ,choose: function(obj){
					    obj.preview(function(index, file, result){
					      //对上传失败的单个文件重新上传，一般在某个事件中使用
					      //obj.upload(index, file);
					    });
					  }
				});
				
			form.render()
		</script>
	
	</body>

</html>